package com.jack.payment.controller.admin.auth;

import com.jack.payment.entity.common.CommonAskParam;
import com.jack.payment.entity.common.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Tag(name = "权限")
@RequestMapping(value = "/api/v1/permissions")
public class PermissionController {
    private Logger log = LoggerFactory.getLogger(PermissionController.class);

    @Operation(summary = "获取用户基础权限")
    @RequestMapping(value = "getAccountPermissions", method = {RequestMethod.POST})
    @ResponseBody
    public CommonResult getAccountPermissions(@RequestBody CommonAskParam data) {
        String userId = (String) data.getCommon().getUserId();

        return CommonResult.ok();
    }
}
